   
   html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
 
  max-height: 100%;
  
}
#head nav{
    width: 100%;
    max-width: 100%;
}
   #nav-brand{
        font-size: 25px;
        font-weight: bold;
        margin-left: 20px;
        font-family: 'Orbitron', sans-serif;
        color: white;
    }
    .navbar{
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 100;

    }
    .navbar-nav a , .navbar-brand {
        color: white;
        text-decoration: none;
        text-shadow: 2px 2px 4px #000000;
        transition: all .5s ease;
       font-family: 'Orbitron', sans-serif;
        font-size: 20px;
        font-weight: bold;
        margin-right: 20px;
        
      }

      /* عشان الزرار يفضل مظبوط مع الاسم */
.navbar-toggler {
  padding: 0.25rem 0.5rem;
  margin-top: 0; 
  border: none; 
  outline: none !important; 
  box-shadow: none !important;
}


.navbar-toggler-icon {
  filter: invert(1);
}

#navbarNav1{
    max-width: 100%;
    width: 100%;
    position: relative;
    right: 25px;
}
    .navbar-nav a:hover , #nav-brand:hover{
        transform: scale(1.1);
        color: rgba(220, 20, 60, 0.895);}
    #line3{
        width: 2px;
        height: 40px;
        background-color: crimson;
        margin-right: 600px;
        box-shadow: 0 0 20px crimson;
        
    }    
    #line4{
        width: 2px;
        height: 40px;
        background-color: crimson;
        
       
        box-shadow: 0 0 20px crimson;
    }
    
        header{
        background-color: #0d0820;
      }  
    section{
        background-color: #0d0820;
        height: auto;
        
        
      }
    
    #main{
        height: auto;
        display: grid;
        grid-template-columns: repeat(16, 1fr);
        grid-template-rows: repeat(5, 1fr);
        justify-content: center;
        color: white;
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    }

    #right-main{
        grid-column: 1/8;
        grid-row: 1/5;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(3, 1fr);
        justify-content: center;
        align-items: center;
    }
    #left-main{
        grid-column: 8/17;
        grid-row: 1/5;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(4, 1fr);
        justify-content: center;
        align-items: center;
    }

    #pro-img{
        width: 500px;
        height: 550px;
        border-radius: 10px;
        background-color: #0d0820;
        grid-column: 8/16;
        grid-row: 1 / 5;
        justify-self: center;
        align-self: center;
        float: right;
        position: relative;
        right: 60px;
        border: 5px solid crimson;
        box-shadow: 0 0 20px crimson;
        transition: all .3s ease;  
        overflow: hidden; 
    }
    #pro-img img{
        width: 100%;
        height: 100%;
        border-radius: 10px;
        grid-column: 2/3;
        grid-row: 1 / 5;
        float: right;
        position: relative;
        
        object-fit: cover;    
        border: #0d0820 solid 3px; 
        transition: all .3s ease;   
        
        
    }
    #overlay{
        position: absolute;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        color: #f1f1f1;
        width: 100%;
        text-align: center;
        font-size: 20px;
        padding: 10px 0;
        opacity: 0;
        transition: opacity .3s ease;
    }
    #pro-img:hover #overlay{
        opacity: 1;
    }
   
#hello{
    font-size: 40px;
    font-weight: bold;
    grid-column: 1/6;
    grid-row: 1;
    padding: 0;
    align-self: end;
    justify-self: start;
    
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: linear-gradient( to right, white 90%, crimson 10%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} 

#line{
        width: 150px;
        height: 2px;
        background-color: crimson;
        grid-column: 1;
        grid-row: 1/3;
        float: left;
        top: 50px;    
        box-shadow: 0 0 20px crimson;
    }
#main h2{
    font-size: 30px;
    font-weight: normal;
    grid-column: 2/4;
    grid-row: 2;
    margin: 0;
    padding: 0;
    align-self: start;
    justify-self: start;
font-family: 'Orbitron', sans-serif;    top: 20px;
    
}

#web {
    width: fit-content;
    font-size: 40px;
    font-weight: bold;
    grid-column: 1/6;
    position: relative;
    grid-row: 3/5; 
    left: 80px;
    top: -180px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: linear-gradient( to right, white, crimson , crimson);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
}

#hello,#web,#main p,#main h2,#line{
    margin-left: 25px;
    transition: transform .3s ease;
}
#hello{
    margin-left: 100px;
}

#main h2,#line{

    position: relative;
    
}

#hello:hover,#web:hover,#main p:hover,#main h2:hover,#line:hover{
    transform: scale(1.1);
}
#pro-img:hover{
    transform: scale(1.05);
}
#pro-img img:hover{
    transform: scale(1.025);
}

button{
    width: 200px;
    height: 75px;
    border-radius: 20px;
    border: 3px solid crimson;
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    grid-row: 4;
    margin-left: 25px;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    top: -20px;
}

.btn1{
    background-color: crimson;
    grid-column: 1/3;
    margin-left: 15px;
 box-shadow: 0 0 20px crimson;

}
.btn2{
    background-color: transparent;
    grid-column: 3/4;
    margin-left: -30px;
}
.btn2 a ,.btn1 a{
    text-decoration: none;
    color: white;}
.btn2:hover{
    background-color: crimson;
    transform: scale(1.1);
    color: white;
    border: 2px solid crimson;
    box-shadow: 0 0 20px crimson;
}
.btn1:hover{
    background-color: transparent;
    transform: scale(1.1);
    color: white;
    border: 2px solid crimson;
}
.btn1,.btn2{
    font-weight: bold;
    box-shadow: 0 0 20px crimson;
    margin-bottom: 60px;
    position: relative;
    top: -50px;
}
#line2{
        width: 2px;
        height: 450px;
        background-color: crimson;
        grid-column: 7/8;
        grid-row: 1/4;
        float: left;
        top: 30px;    
        box-shadow: 0 0 20px crimson;
        position: relative;
        top: 50px;
    }
#nav{
    width: 100%;
    background-color: #10092c;
    color: white;
    grid-row: 5;
    grid-column: 1/17;
    height: 60px;
}
#list{
    list-style: none;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: static;
    
    
}
#list li{
    display: inline-block;
    margin-right: 10px;
    padding: 5px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    transition: all .5s ease;
    margin-left: 70px;
    padding-top: 15px;
   
}
#list li:hover{
    transform: scale(1.1);
    color: rgba(220, 20, 60, 0.895);
}
#about-me{
    height: auto;
    color: white;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    position: relative;
    top: 100px;
    
}
#about-me h1{
    font-size: 40px;
    font-weight: bold;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    color: crimson;
}
#about-me h1,
#left,
#right {
  opacity: 0; /* hidden by default */
}






#right{
    grid-column: 2/3;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    position: static;
    margin-right: 150px;
    margin-top: -100px;
}
#left{
    grid-column: 1/2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    position: relative;
    top: -100px;

}
#col1{
    width: 20px;
    height: auto;
    border-radius: 10px;
    background-color: #0d0820;
    grid-column: 1/2;
    grid-row: 1 ;
    justify-self: center;
    align-self: center;
    float: left;
    position: relative;
    
    display: flex;
    flex-direction: column;
    transition: all .3s ease;   
}

#line5{
        width: 2px;
        
        background-color: crimson;
        grid-column: 1;
        grid-row: 1;
        justify-self: left;
        align-self: left;
        float: left;
        top: 50px;    
        box-shadow: 0 0 20px crimson;
    }
#dot1{
    width: 15px;
    height: 15px;
    background-color: crimson;
    border-radius: 100%;
    grid-column: 1;
    grid-row: 1;
    justify-self: left;
    align-self: left;
    float: left;
    top: 80px;    
    box-shadow: 0 0 20px crimson;
}
#line6{
        width: 2px;
        background-color: crimson;
        grid-column: 1;
        grid-row: 1;
        justify-self: left;
        align-self: left;
        float: left;
        top: 50px;    
        box-shadow: 0 0 20px crimson;
    }
#dot2{
    width: 15px;
    height: 15px;
    background-color: crimson;
    border-radius: 100%;
    grid-column: 1;
    grid-row: 1;
    justify-self: left;
    align-self: left;
    float: left;
    top: 150px;    
    box-shadow: 0 0 20px crimson;
}
#line7{
        width: 2px;
        background-color: crimson;
        grid-column: 1;
        grid-row: 1;
        justify-self: left;
        align-self: left;
        float: left;
        top: 50px;    
        box-shadow: 0 0 20px crimson;
    }
    #dot1,#dot2{
    margin-left: -6px;
    }
    #line5,#line6,#line7{
        height: 130px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #col2{
        width: 350px;
        height: auto;
        border-radius: 10px;
        background-color: #0d0820;
        grid-column: 2/3;
        grid-row: 1 /3;
        justify-self: center;
        align-self: center;
        float: right;
        position: relative;
        right: -50px;
        top: -10px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        
    }
    
    #col2 i{
        color: white;
        font-size: 30px;
        margin-top: 20px;
        margin-bottom: 50px;
        margin-left: 20px;
    }
    #para{
        font-size: 20px;
        font-weight: normal;
        text-align: left;
font-family: 'Orbitron', sans-serif;        padding: 0 20px;
        line-height: 1.6;
        grid-column: 1/3;
        grid-row: auto;
        margin: 0;
        padding: 0;
        align-self: start;
        justify-self: left;
        position: relative;
        top: -60px;
        width: 550px;
    }
    
     #right {
        display: flex;
        gap: 50px;
        justify-content: center;
        align-items: left;
        flex-direction: column;
        position: relative;
        top: -60px;
     }
  #stats {
  margin-top: -50px;
  color: white; /* أو أي لون */
    margin-left: 160px;
}

#stats .number {
  font-size: 40px;
  font-weight: bold;
  margin: 0;
  
text-align: left;
}

#stats .title {
  font-size: 25px;
  font-weight: bold;
  width: 150px;
  margin: 0;
  text-align: left;
   background: linear-gradient( to right, white, crimson , crimson);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
}


     
#second-section{
    height: auto;
    background-color: #0d0820;
}
.btn3{
    background-color: crimson;
    grid-column: 1/3;
    margin-left: 15px;
    margin-top: 15px;
 box-shadow: 0 0 20px crimson;
 transition: all .3s ease  ;

}
.btn3:hover{
    background-color: transparent;
    transform: scale(1.1);
    color: white;
    border: 2px solid crimson;
}
#third-section{
    height: 100%;
    position: relative;
    top: -18px;
   
  
}
#third-section h1{
    text-align: center;
    font-size: 60px;
    font-family: 'Orbitron', sans-serif;
    color: crimson;
    transition: all .3s ease;
    margin-top: 15px;
    margin-bottom: 50px ;
    
}

#project-img{
    border: 2px solid crimson;
    box-shadow: 0 0 20px crimson;
    border-radius: 10px;
    height: 70% ;
}
#project-img img{
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

#btn4{
    background-color: crimson;
    border: 1px solid crimson;
    box-shadow: 0 0 20px crimson;
    transition: all .3s ease  ;
    margin-top: 15px;

}
#btn4:hover{
      background-color: transparent;
    transform: scale(1.05);
    color: white;
    border: 2px solid crimson;
}
#btn5{
    background-color: transparent;
    border: 1px solid crimson;
    box-shadow: 0 0 20px crimson;
    transition: all .3s ease  ;
    margin-top: 15px;

    
}
#btn5:hover{
      background-color: crimson;
    transform: scale(1.05);
    color: white;
    border: 2px solid crimson;
}
#btn4 a,#btn5 a{
    text-decoration: none;
    color: white;
    font-size: 20px;
}

#para2 h2,#para3 h2{
     
    font-size: 40px;
    color: crimson;
    font-family: 'Orbitron', sans-serif;
    }
    #para2 p,#para3 p{
        color: white;
        font-size: 20px;
        width: 95%;
        font-family: 'Roboto', sans-serif;
    }
    
    #line9,#line10{
        height: 2px;
        width: 38%;
        background-color: crimson;
    }
    #line9{
        position: relative;
        top: 57px;
        left: 25px;
    }
    #line10{
        position: relative;
        top: -80px;
        left: 900px;
    }

    #forth-section {
  background-color: #0d0820;
        margin-top: -50px;
  
  
}

#social-icons i {
  font-size: 50px;
  color: white;
  transition: all .3s ease;
  margin: 15px 0;
}

#social-icons i:hover {
  color: crimson;
  transform: scale(1.2);
  text-shadow: 0 0 20px crimson;
}
#education{
    justify-content: center;
    align-items: center;
    height: 100%;
}
#education h1{
    font-family: 'Orbitron', sans-serif;
    color: crimson;
    font-size: 60px;
    text-align: center;
}
#education p{
font-family: 'Orbitron', sans-serif;    color: white;
    font-size: 25px;
    text-align: left;
    margin-left: 15px;
}
#education-img{
      border: 2px solid crimson;
    box-shadow: 0 0 20px crimson;
    border-radius: 10px;
    height: 80% ;
}
#education-img img{
     border-radius: 10px;
    width: 100%;
    height: 100%;
}
#row3{
    margin-top: 30px;
}
#line11,#line12{
      height: 2px;
        width: 38%;
        background-color: crimson;
}
#line11{
    position: relative;
    top: 40px;
    
}
#line12{
position: relative;
left: 920px;
top: -40px;
}

@media (max-width: 768px) {
  

    html,body{
        width: 100%;
    max-width: 100%;
   }

    #nav-brand{
        font-size: 20px;
        margin-left: 10px;
        justify-self: center;
        align-self: center;

    }
    #navbarNav1 a{
     margin-left: 50px;
    
    }
    #head nav{
    width: 100%;
    max-width: 100%;
}
#navbarNav1{
    max-width: 100%;
}
   
    .navbar-nav a{
        transition: all .3s ease;
        margin-left: 25px;
    }
   .navbar-nav a:hover{
    
   transform: scale(1.1);
        color:rgba(220, 20, 60, 0.895) ;
        text-shadow: 2px 2px 4px rgba(220, 20, 60, 0.895);
      
   }
  .navbar-toggler {
  margin-right: 0; /* يمنع خروجه برا الشاشة */
  overflow-x: hidden;
}
.navbar-toggler-icon {
  background-size: 100% 100%; /* عشان ما يتمددش */
}

    #line4{
        display: none;
    }
    #line3{
        height: 30px;
        position: relative; 
        left: -300px;   
        top: -0px;
        display: none;
    }

    #main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }
   
  #right-main {
    order: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

    #left-main {
        order: 1; /* الصورة تيجي بعد النصوص */
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    #pro-img {
        width: 80%;
        max-width: 300px;
        height: auto;
        right: 0;
        margin: 0 auto;
        position: relative;
        top: 50px;
    }

   
  #hello {
    font-size: 28px;
    margin: 0 auto;
    text-align: center;
    justify-self: center;
    margin-top: 25px;
  }
    #line {
    height: 2px;
    background-color: crimson;
    width: 75px;             /* يملأ الصفحة */
    margin: 0;   
    margin-right: 7px;            /* من غير فراغ */
    align-self: flex-start;
    position: relative;
    top: 25px;
  }
     #main h2 {
    font-size: 22px;
    margin: 10px auto;
    text-align: center;
    position: static;
  }
 #web {
    font-size: 26px;
    margin: 15px auto;
    text-align: center;
    position: static;
    margin-top: -2px;
}
 .btn1, .btn2 {
    width: 160px;
    height: 55px;
    margin: 10px auto;
    font-size: 16px;
    position: static;
    display: block;
  }

    #line2 {
        display: none; /* الخط اللي في النص بيبوظ في الموبايل */
    }
    #nav{
        height: max-content;
        width: 100%;
        max-width: 100%;
        
        
    }
#list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* يوسّطهم */
  gap: 15px;
  
  padding: 0;
  margin: 10px auto;  /* auto يخليها في النص */
  list-style: none;
  width: 100%;  
  max-width: 100%; 
  margin-left: 0px;     /* ياخد عرض الشاشة */
}

#list li {
  display: inline-block;
  text-align: center;
  font-size: 12px;
  margin-left: 0px;
  
  color: white;
  border-radius: 5px;
  width: 70px;
  padding: 8px 15px;   /* padding كفاية من غير عرض ثابت */
}



    #about-me {
    display: flex;
    flex-direction: column; /* كله عمودي */
    align-items: center;
    text-align: center;
    height: auto;
    padding: 20px 20px;
    position: relative;
    margin-top: -100px;
    
    
  }
#about-me h1{
    text-align: center;
    margin-left: 5px;
}
  #right,
  #left {
    width: 100%;
    margin: 20px 0;
    margin-right: 10px;
    position: static;
    
  }
  #left button{
    margin-bottom: 50px;
  }

  #para {
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
    padding: 0 10px;
    width: 100%;
    text-align: center;
  }

  #col2 {
    width: 100%;
    height: auto;
    position: relative;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
  

  #col1{
    display: none;
  }
  
    #third-section{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
   
    #conatain1{
        order: 1;
    }
    #para3{
        order: 2;
        
    }
    #para2 ,#para3{
        margin-top: 15px;
        align-items: center;
        justify-content: center;
        text-align: center;
    } 
    #para2 p,#para3 p{
    
      margin-left: 15px;

    }
   
    #line9,#line10{
        display: none;
    }
      #social-icons .col-4,
  #social-icons .col-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    

  }
    #social-icons a {
    width: 30%;   /* كل أيقونة تاخد تلت العرض تقريبا */
    margin: 15px 0;
    margin-left: 5px;
  }
  #navbarNav1{
    position: relative;
    right: 0px;
    
  }
  #para5{
     margin-top: 15px;
        align-items: center;
        justify-content: center;
        text-align: center;
    order: 2;
}
#para5 p{
    text-align: center;
margin-left: 15px;
}
#education h1{
  
}
#edu1 h1{
    max-width: 100%;
    margin-right: 15px;
}
  #education-img{
    margin-left: 15px;
    order: 1;
  }
  #line11,#line12{
    display: none;
  }  #stats {
    margin: 20px auto !important; /* يشيله من الشمال ويحطه في النص */
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    align-items: center;    /* يوسّط العناصر أفقياً */
    justify-content: center; 
    text-align: center;
  }
  #stats .number, 
  #stats .title {
    text-align: center;
    
  }
 #stats .title{
    width: 140px;
    font-size: 25px;
  }
#line{
    display: none;
}
}

